#include "../source/Util.hpp"
#include <memory>

using namespace Util;

const std::string HOST = "127.0.0.1";
const std::string DB = "test_data";
const uint16_t PORT = 3306;

int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        std::cout << "./mysql user passwd" << std::endl;
        return -1;
    }
    std::unique_ptr<mysql>sql(new mysql(argv[1], argv[2], DB, HOST));
    sql->init();

    sql->query("insert into user (id, name, password, birthday) values(2, '李四', '12345', '2013-04-13')");


    return 0;
}